<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class kst_stok_aging extends MY_Controller {
	
	function __construct()
	{
		parent::__construct(); 
		
		$this->load->model('kst_stok_aging_model', 'Barang');
		$this->secure_session();
	}
	
	function index(){
		$data['title'] = "Stok By Aging";
		viewByTemplate('kst_stok_aging/index', $data, 'grid');
	}
	
	function getdata()
	{
		$this->secure_session();
		echo $this->Barang->GetJSON();
	}
	
}
?>